<!DOCTYPE html>
<html>
<head>
    <title>车间型芯库存状态统计</title>
    #parse("sys/header.html")
</head>
<style>
    ::-webkit-scrollbar{
        width: 10px;
        height: 10px;
    }
    ::-webkit-scrollbar-thumb{
        border-radius: 10px;
        -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
        background: #a8a5a5;
    }
</style>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <Row :gutter="16" style="margin: 8px 0px 0px 1px">
            <div class="search-group">
                <i-col span="4">
                    <i-input v-model="q.sparePartsName" @on-enter="query" placeholder="型芯名称"/>
                </i-col>
                <i-col span="4">
                    <i-input v-model="q.mapNo" @on-enter="query" placeholder="图号"/>
                </i-col>
                <i-button @click="query">查询</i-button>
                <i-button @click="reloadSearch">重置</i-button>
            </div>
        </Row>
        <Row :gutter="16" style="margin: 3px 0px 0px 0px;">
            <div class="buttons-group">
                <i-button type="info" @click="addDemandItem"><i class="fa fa-plus"></i>&nbsp;添加型芯计划</i-button>
                <i-button type="warning" @click="adjustMoldSpPlan"><i class="fa fa-pencil-square-o"></i>&nbsp;调整型芯计划</i-button>
            </div>
        </Row>
        <Row>
            <i-col span="3">
                <ul id="storeTree" class="ztree"></ul>
            </i-col>
            <i-col span="21">
                <table id="jqGrid"></table>
            </i-col>
        </Row>
    </div>

    <Card v-show="!showList">
        <p slot="title">{{title}}</p>
        <i-form ref="formValidate" :model="moduleSpDeptStock" :rules="ruleValidate" :label-width="80">
            <Row>
                <i-col span="11">
                    <Form-item label="入库数" prop="stockInNum">
                        <i-input v-model="moduleSpDeptStock.stockInNum" placeholder="入库数"/>
                    </Form-item>
                </i-col>
                <i-col span="11">
                    <Form-item label="仓库ID" prop="storeId">
                        <i-input v-model="moduleSpDeptStock.storeId" placeholder="仓库ID"/>
                    </Form-item>
                </i-col>
            </Row>
            <Row>
                <i-col span="11">
                    <Form-item label="所属车间" prop="workshop">
                        <i-input v-model="moduleSpDeptStock.workshop" placeholder="所属车间"/>
                    </Form-item>
                </i-col>
                <i-col span="11">
                    <Form-item label="备注" prop="remark">
                        <i-input v-model="moduleSpDeptStock.remark" placeholder="备注"/>
                    </Form-item>
                </i-col>
            </Row>
            <Row>
                <i-col span="11">
                    <Form-item label="出库数" prop="stockOutNum">
                        <i-input v-model="moduleSpDeptStock.stockOutNum" placeholder="出库数"/>
                    </Form-item>
                </i-col>
            </Row>
            <Row>
                <i-col span="11">
                    <Form-item label="在途数" prop="transitNum">
                        <i-input v-model="moduleSpDeptStock.transitNum" placeholder="在途数"/>
                    </Form-item>
                </i-col>
                <i-col span="11">
                    <Form-item label="库存数" prop="stockNum">
                        <i-input v-model="moduleSpDeptStock.stockNum" placeholder="库存数"/>
                    </Form-item>
                </i-col>
            </Row>
            <Row>
                <i-col span="11">
                    <Form-item label="型芯备件ID" prop="moldSpId">
                        <i-input v-model="moduleSpDeptStock.moldSpId" placeholder="型芯备件ID"/>
                    </Form-item>
                </i-col>
            </Row>
            <Form-item>
                <i-button type="primary" @click="handleSubmit('formValidate')">提交</i-button>
                <i-button type="warning" @click="reload" style="margin-left: 8px"/>
                返回</i-button>
                <i-button type="info" @click="handleReset('formValidate')" style="margin-left: 8px">重置</i-button>
            </Form-item>
        </i-form>
    </Card>
</div>

<script src="${rc.contextPath}/js/module/modulespdeptstock.js?_${date.systemTime}"></script>
</body>
</html>
